package org.ttitfly.zuoyue.web.complaint;

import java.util.List;

import org.ttitfly.ttcore.util.query.PageList;
import org.ttitfly.zuoyue.entity.complaint.Complaint;
import org.ttitfly.zuoyue.service.complaint.ComplaintManager;
import org.ttitfly.zuoyue.so.complaint.ComplaintSO;

public class ComplaintPageList extends PageList<ComplaintSO>  {

	/**
	 * 
	 */
	private ComplaintManager complaintManager;
	
	public ComplaintPageList(ComplaintSO so, ComplaintManager complaintManager) {
	      super(so);
	      this.complaintManager = complaintManager;
	}

	@Override
    protected int getObjectCount() {
        return complaintManager.getSOComplaintViewCount(so);
    }

    @Override
    protected List<Complaint> getObjectList() {
        return complaintManager.getSOComplaintView(so);
    }

	public ComplaintManager getComplaintManager() {
		return complaintManager;
	}

	public void setComplaintManager(ComplaintManager complaintManager) {
		this.complaintManager = complaintManager;
	}
    

	
}
